﻿using System;
using System.Data;
using System.Data.Common;
using System.Data.SqlClient;

namespace DapperLinq.PuvBuilder
{
    public class PuvDbHelper
    {

        //private static System.Collections.Concurrent.ConcurrentDictionary<string, PuvDbHelper> 


        public static IDbConnection GetDbConnection(string connectionStr = "default")
        {
            if (string.IsNullOrWhiteSpace(connectionStr) || connectionStr == "default")
            {
                connectionStr = "Server=192.168.31.13;database=iSchoolArticle;user id=iSchool;password=SxbLucas$0769;MultipleActiveResultSets=true;";
            }
            var conn = new SqlConnection(connectionStr);
            return conn;
        }


    }


}
